page("TeklaStructures", "")
{
    joint(1, "Wapkorf Sparing (V15)")
    {
        tab_page("", " Parameters 1 ", 1)
        {
            parameter("", "P1", distance, number, 328, 161, 75)
            parameter("", "P2_size", rebar_size, text, 515, 270, 50)
            parameter("", "P3_size", rebar_size, text, 651, 2, 50)
            parameter("", "P4_size", rebar_size, text, 983, 175, 30)
            parameter("", "P7", distance, number, 564, 138, 75)
            parameter("", "P8", distance, number, 102, 10, 80)
            parameter("", "P9", integer, number, 899, 175, 30)
            parameter("", "P10", distance, number, 1068, 175, 80)
            parameter("", "P22", distance, number, 857, 10, 80)
            attribute("", "Maak HW kop?", label, "%s", none, none, "0", "0", 363, 0)
            parameter("", "P14", YesNo, number, 512, 2, 60, "toggle_field:!P8=1;!P22=1;P3_size=1;P3_grade=1")
            attribute("", "Dekking zijkanten", label, "%s", none, none, "0", "0", 922, 300)
            parameter("", "P16", distance, number, 1088, 300, 60)
            parameter("", "P28", distance, number, 160, 229, 80)
            attribute("", "Dekking kopse vlak", label, "%s", none, none, "0", "0", 1075, 2)
            parameter("", "D3", distance, number, 1104, 30, 80)
            picture("Wapkorf Sparing (V15)", 1057, 229, 7, 28)
            attribute("", " Ø", label, "%s", none, none, "0", "0", 452, 270)
            attribute("", "Ø", label, "%s", none, none, "0", "0", 598, 2)
            attribute("", "Ø", label, "%s", none, none, "0", "0", 935, 175)
            attribute("", "-", label, "%s", none, none, "0", "0", 1027, 175)
            attribute("P30", "", option, "%s", none, none, "0.0", "0.0", 513, 240, 80)
            {
                value("BGLS", 0)
                value("HRSP", 1)
            }
            parameter("", "P16a", distance, number, 1184, 300, 60)
            parameter("", "P12", distance, number, 176, 91, 80)
            parameter("", "P24", distance, number, 778, 92, 80)
        }
        tab_page("", " Parameters 2 ", 2)
        {
            attribute("", "Startnummer hrsp/bgls", label, "%s", none, none, "0", "0", 20, 196)
            parameter("", "P38", integer, number, 374, 196, 160)
            attribute("", "Klasse staven", label, "%s", none, none, "0", "0", 20, 84)
            parameter("", "P39", integer, number, 374, 84, 160)
            attribute("", "Naam staven", label, "%s", none, none, "0", "0", 20, 0)
            parameter("", "P40", string, text, 374, 0, 160)
            parameter("", "P3_grade", rebar_grade, text, 700, 0, 100)
            parameter("", "P4_grade", rebar_grade, text, 700, 28, 100)
            attribute("", "Prefix staven", label, "%s", none, none, "0", "0", 20, 28)
            parameter("", "P33", string, text, 374, 28, 160)
            attribute("", "Startnummer staven", label, "%s", none, none, "0", "0", 20, 56)
            parameter("", "P34", integer, number, 374, 56, 160)
            attribute("", "Klasse hrsp/bgls", label, "%s", none, none, "0", "0", 20, 224)
            parameter("", "P35", integer, number, 374, 224, 160)
            attribute("", "Naam hrsp/bgls", label, "%s", none, none, "0", "0", 20, 140)
            parameter("", "P36", string, text, 374, 140, 160)
            attribute("", "Kwaliteit", label, "%s", none, none, "0", "0", 700, 140)
            parameter("", "P2_grade", rebar_grade, text, 700, 168, 80)
            attribute("", "Prefix hrsp/bgls", label, "%s", none, none, "0", "0", 20, 168)
            parameter("", "P37", string, text, 374, 168, 160)
        }
    }
}
